package net.marktruran.decorators;

import net.marktruran.components.Weapon;

/**
 * The Stun enchantment gives a 5% chance to incapacitate an opponent.
 *
 * @author Mark Truran <me@marktruran.net> 
 */
public class Stun extends Enchantment {
    
    /**
     * Builds a new Stun enchantment object. 
     * 
     * @param weapon The weapon we want to enchant
     */
    public Stun(Weapon weapon) {
        this.weapon = weapon;
    }

    @Override
    public void damage() {
        weapon.damage();
        System.out.println("Weapon causes STUN effect");
    }
}
